package com.pomr.service.record;

import java.util.List;

import com.pomr.model.health.FamilyRecord;
import com.pomr.model.health.FamilyRelation;
import com.pomr.util.page.Page;

public interface FamilyService {
	/**
	 * 保存--连带保存家庭关系
	 * @param fr
	 * @return
	 * @throws Exception
	 */
	public boolean saveFamily(FamilyRecord fr)throws Exception;
	
	public Page<List<FamilyRecord>> searchFamilys(Page<List<FamilyRecord>> page,String tj) throws Exception;
	
	public Page<List<FamilyRecord>> searchFamilyInfo(Page<List<FamilyRecord>> page,String tj) throws Exception;
	
	public Page<List<FamilyRecord>> searchFamilyOfPersonInfo(Page<List<FamilyRecord>> page,String tj) throws Exception;
	
	public boolean saveRelation(FamilyRelation relation)throws Exception;
	
	public boolean deleteFamilys(List<String> ids)throws Exception;
	
	public boolean deleteRelations(List<String> ids)throws Exception;
	
	public boolean switchRelation(String id,String fid)throws Exception;
	
	public FamilyRecord searchRecords(FamilyRecord record)throws Exception;
	
	public boolean updateFamily(FamilyRecord fr)throws Exception;
	
	public boolean updateFamilyInfo(FamilyRecord fr)throws Exception;

}
